const {
  defineConfig
} = require('@vue/cli-service')





module.exports = defineConfig({
  transpileDependencies: true,
  publicPath:'./',
  // 默认是  /   
  // 服务器的根路径  
  // ./  
  // www.qq.com/sleep/index.html  
  css: {
    loaderOptions: {

      // scss
      scss: {
        additionalData: `@import "~@/common/variables.scss";`
      },

      //less
      less: {
        // 若 less-loader 版本小于 6.0，请移除 lessOptions 这一级，直接配置选项。
        lessOptions: {
          modifyVars: {
// @ === /src  
            hack: `true; @import "~@/common/variables.less";`,
          },
        },
      },




    }
  }
})